home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-07-19 | 1.4 KB | 42 lines | [TEXT/pdos] |
- Count -- Count lines and characters
-
- Syntax Count [-l] [-c] [file...]
-
- Description Counts the lines and characters in its input, and writes the
- results to standard output. If no files are specified, standard
- input is read. If more than one file is specified, separate counts
- are printed for each file, one per line, preceded by the filename,
- and a total is printed following the list.
-
- Input Standard input is read if no files are specified on the command
- line.
-
- Output Line and characters counts are written to standard output.
-
- Diagnostics Errors are written to diagnostic output (Standard Error).
-
- Status Count may return the following status codes:
- 0 No errors.
- 1 Error in parameters.
- 2 Unable to open input file, or out of memory.
-
- Options -l Write only the line counts.
-
- -c Write only the character counts.
-
- -p Write version and copyright information to diagnostic output.
-
- Examples Count MakeFile.c Count.c
-
- Displays line counts and character counts in the form
-
- MakeFile.c 43 981
- Count.c 153 3327
- Total 196 4303
-
-
- Files | Count -l
-
- Displays the total number of files and directories in the current
- directory.
-